home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7100 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  939 b 

  1. Path: risky.ecs.umass.edu!usenet
  2. From: sebag@ecs.umass.edu
  3. Newsgroups: comp.lang.c
  4. Subject: C beginner needs your help ASAP
  5. Date: Sun, 18 Feb 96 11:35:32 GMT
  6. Organization: Engineering Computer Services
  7. Distribution: world
  8. Message-ID: <4g862f$p0b@risky.ecs.umass.edu>
  9. NNTP-Posting-Host: alpha.ecs.umass.edu
  10.  
  11. I am a new C programmmer who desperately needs help.
  12. I have been digging in the manuals for a way to do this but have still
  13. come out empty handed. Here is the problem: I want to open files in a while
  14. loop with different filenames. data0,data1,data2,data3, .. data1000 , ...
  15. I need to increment an integer each time around then convert it to a string
  16. and then somehow use strcat to combine the "data" with the integer string.
  17. After that use fopen(filename, "a");
  18.  
  19. If you know how to do this, please email me. It would take you 2 minutes but
  20. it is taking me two days so far. Code would be extremly useful.
  21. Thanks, sebag@ecs.umass.edu
  22.